#/bin/bahs
rm -r sqldb
mkdir -p  sqldb/{msc,mashangdian_db}
cd sqldb
for i in `mysql -uroot -p123456 -e 'use msc;show tables'|grep 'msc'`
do
echo ${i}
#mysqldump -uroot -p123456 -d mysql ${i}  >msc/${i}.sql
done
#---------------------------------------------------------------------------------------------
for i in `mysql -uroot -p123456 -e 'use mashangdian_db;show tables'|grep 'msc_sso_shenzhenshi_755'`
do
echo ${i}
#mysqldump -uroot -p123456 -d mysql ${i}  >mashangdian_db/${i}.sql
done
